package com.qqtech.qquan.pub.service;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import com.qqtech.core.frame.dao.BaseDao;
import com.qqtech.core.frame.service.BaseServiceImpl;

import com.qqtech.qquan.pub.dao.PubUpgradeVersionDao;
import com.qqtech.qquan.pub.model.*;

@Service
public class PubUpgradeVersionServiceImpl extends BaseServiceImpl<PubUpgradeVersion>
		implements PubUpgradeVersionService {
	public static final Logger log = LoggerFactory.getLogger(PubUpgradeVersionServiceImpl.class);
	
	@Resource
	private PubUpgradeVersionDao pubUpgradeVersionDao;

	@Override
	protected BaseDao<PubUpgradeVersion> getBaseDao() {
		return pubUpgradeVersionDao;
	}
	
	@Override
	public PubUpgradeVersion getByCurrVersion(java.lang.String currVersion) {
		return pubUpgradeVersionDao.getByCurrVersion(currVersion);
	}	
}